package com.example.exam.mapper;

import com.example.exam.pojo.DTO.ExamPaperAnswerDTO.PaperAnswerDTO;
import com.example.exam.pojo.entity.TExamPaperAnswer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xiaohu
 * @since 2022-12-26
 */
@Repository
public interface TExamPaperAnswerMapper extends BaseMapper<TExamPaperAnswer> {

    /**
     * 未批改列表
     * @param paperAnswerDTO
     * @return
     */
    List<TExamPaperAnswer> findExamPaperAnswer(PaperAnswerDTO paperAnswerDTO);

    /**
     * 已批改列表
     * @param paperAnswerDTO
     * @return
     */
    List<TExamPaperAnswer> examPaperAnswerFinished(PaperAnswerDTO paperAnswerDTO);

    int deleteById(Integer id);

    TExamPaperAnswer selectById(Integer id);

    int update(TExamPaperAnswer examPaperAnswer);



}
